<!DOCTYPE html>
<html>

	<head lang="en">
		<title>我的收藏</title>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
		<link rel="stylesheet" href="/js/bootstrap/css/bootstrap.min.css">
		<script src="/js/jquery/jquery.min.js"></script>
		<script src="/js/bootstrap/js/bootstrap.min.js"></script>
		<script src="/js/plugins/jrender/jrender.js"></script>
		<link rel="stylesheet" href="/css/font/css/font-awesome.min.css">
		<link rel="stylesheet" href="/css/reset.css">
		<link rel="stylesheet" href="/css/index.css">
		<link rel="stylesheet" href="/js/plugins/dialog/dialog.css">
		<script src="/js/plugins/dialog/dialog.min.js"></script>
		<script src="/js/common.js"></script>
	<script>


        function renderView(data) {
            $(".news").renderValues(data,{
                handle:function (ele, value) {
                    //ele代表的是该标签，
                    $(ele).attr("href","/newsContent.html?id="+value);
                }
            });
        }

		$(function () {
            //获取用户
            var user = JSON.parse(sessionStorage.getItem("user"));
            //获取该文章的id
            var id = getParams().id;
            //==================================

            //页面加载完之后就发送get请求获取到页面的数据，然后再开始进行渲染
            $.get("/enshrine/getMy/"+user.id,function (data) {
                //查询到指定的数据之后就进行渲染
                renderView({list:data});
            });

        })
	</script>
	</head>

	<body>
		

		<div class="search-head">
			<div class="row nav-search">
				<div class="col-2">
					<a href="/mine/profiles.html">
						<span><i class="fa fa-chevron-left fa-2x"></i></span>
					</a>
				</div>
				<div class="col-10">
				</div>
			</div>
		</div>

		<div class="container news">
		
			<div class="news">
				<h6 class="news-title">我收藏的日报 </h6>
				<div class="row" render-loop="list" >
					<div class="col-6">
						<a render-key="list.id" render-fun="handle">
							<img class="rounded" width="100%" height="110px"  render-src="list.coverUrl">
						</a>
							<p render-html="list.title"></p>
							</a>
						</div>
					</div>
				</div>
			</div>
		</div>

	

</body>
</html>